package com.ruoyi.web.controller.task;

import com.ruoyi.system.biz.BizOrderService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component

public class OrderInsertGoodsTask {



    @Resource
    private BizOrderService bizOrderService;

    //将订单匹配商品数据
    @Scheduled(cron = "0 0/1 * * * ? ")

    public void insertGoods() {
        bizOrderService.insertGoods();
    }


}
